import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  //查询港股通信息
  queryHKInfo: (query) => api.get(`${config.interfaces.type5}instrument-server/stock/queryHkStockInfo`, query),
  //查询费用
  queryFee: (query) => api.get(`${config.interfaces.type1}HkStockTrade/getFee`, query),
  //簿记下达
  tradeBookSave: (query) => api.post(`${config.interfaces.type1}HkStockTrade/saveHkStockInstruction2`, query),
  //指令下达
  orderSave: (query) => api.post(`${config.interfaces.type1}HkStockTrade/saveHkStockInstruction`, query),
};
